<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>管理员
</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8" >
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=-1000>

<LINK href="/OrderMeal/css/admin.css" type="text/css" rel="stylesheet">
<link href="/OrderMeal/css/layout.css" type="text/css" rel="stylesheet">


<script language="javascript">
function check(form){
	if (form.food_no.value==""){
		alert("请输入菜品编号");
		return false;
	}
	if (form.food_name.value==""){
		alert("请输入菜品名称");
		return false;
	}
	if (form.food_price.value==""){
		alert("请输入菜品价格");
		return false;
	}		
	
}
</script>

</HEAD>


 <body>

<div id="container">
<div id="header"><jsp:include page="header.jsp"></jsp:include></div>
<div id="mainContent">
<div id="sidebar"><jsp:include page="managersf.jsp"></jsp:include></div>
<div id="content">


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR height=28>
    <TD background=/OrderMeal/Images/title_bg1.jpg>当前位置: 菜品添加</TD></TR>
  <TR>
    <TD bgColor=#b1ceef height=1></TD></TR>
  <TR height=20>
    <TD background=/OrderMeal/Images/shadow_bg.jpg></TD></TR></TABLE>
    <center>
    	<form action="servlet/FoodsAdd.do" method = "post" name = "form" onsubmit = "return check (form)" ENCTYPE="multipart/form-data">
    		<h2 align="center">菜品添加</h2>
    		<table >
    		
    		 <tr><td>菜品编号：</td><td><input type ="text" id = "food_no" name = "food_no" /></td></tr>
    		 <tr><td>菜品名称：</td><td><input type = "text" id = "food_name" name = "food_name"/></td></tr>
    		 <tr><td>菜品类型：</td>
    		     <td><select name = "food_type" id = "food_type" />
    		         <option value = "主食" />主食</option>
    		         <option value = "素菜"/>素菜</option>
    		         <option value = "荤菜"/>荤菜</option>
    		         <option value = "酒水饮料"/>酒水饮料</option>     		        		        
    		         </select></td></tr>
    		 <tr><td>菜品风味：</td>
    		     <td><select name = "food_class" id = "food_class" />
    		          <option value = ""/></option>    	
    		         <option value = "川菜" />川菜</option>
    		         <option value = "粤菜"/>粤菜</option>
    		         <option value = "湘菜"/>湘菜</option>    		        
    		         </select></td></tr> 
    		 <tr><td>菜品价格：</td><td><input type = "text" id = "food_price" name = "food_price"/></td></tr>
    		 
    		 <tr><td>菜品图片添加：</td><td><input type = "file" id = "scan" name = "scan" ></td></tr>
    		 <tr><td>菜品说明：</td><td><input type = "text" id = "detail" name = "detail" /></td></tr>
    		 <tr><td>备注：</td><td><input type = "text" id = "remark" name = "remark"/></td></tr>
    		</table>
    		<input type = "submit" id = "submit" name = "submit" value = "提交"/>
    	
    	</form>
    </center>






</div>
</div>

<div id="footer" align="center">版权所有    中北大学10060641  郭倩</div>
</div>

 

  </body>

</HTML>